<template>
  <div>
    <!-- <embed
      src="https://lw-sit.oss-cn-beijing.aliyuncs.com/lw/DOvc-upload-1621220082350-2/1621220105857江苏省交通工程建设局农民工工资管理系统操作手册 (2).pdf"
      type
      width="100%"
      height="800px"
      @keydown.s="show2($event)"
    />-->
    <a :href="`/pdf/web/viewer.html?file=${aa}`" target="view_window"></a>
  </div>
</template>

<script>
export default {
  data(){
    return{
      aa:
        'https://lw-sit.oss-cn-beijing.aliyuncs.com/lw/DOvc-upload-1621220082350-2/1621220105857江苏省交通工程建设局农民工工资管理系统操作手册 (2).pdf'
    }
  },
  created() {
    // window.open(
    //   'https://lw-sit.oss-cn-beijing.aliyuncs.com/lw/DOvc-upload-1621220082350-2/1621220105857江苏省交通工程建设局农民工工资管理系统操作手册 (2).pdf' +
    //     '#toolbar=0',
    //   '_parent'
    // )
  },
  mounted() {
    // document.oncontextmenu = function() {
    //   // Use document as opposed to window for IE8 compatibility
    //   return false
    // }
    // window.addEventListener(
    //   'contextmenu',
    //   function(e) {
    //     // Not compatible with IE < 9
    //     e.preventDefault()
    //   },
    //   false
    // )
  },
  methods: {
    show2() {
      console.log(2222)
    }
  }
}
</script>

<style>
</style>